package Homework3;

public class ResultThread extends Thread {
	SharedArea sharedArea;

	@Override
	public void run() {
		if (sharedArea.ratio == null) {
			synchronized (sharedArea) {
				try {
					sharedArea.wait();
				} catch (InterruptedException e) {
					System.out.println(e.getMessage());
				}
			}
		}System.out.println(sharedArea.ratio);
	}
}
